<?php
    namespace framework;
    class project extends framework
    {
        private static $instance;
        private $name;
        private $configurationsPath;
        private $viewsPath;
        protected function __construct()
        {
            parent::__construct();
            $this -> configurationsPath = dirname(dirname(__DIR__)) . '/conf/';
            $this -> viewsPath = dirname(dirname(__DIR__)) . '/views/';
            $configuration = parse_ini_file($this ->  configurationsPath . 'project.ini');
            $this -> name = $configuration['name'];
        }
        public static function getInstance()
        {
            if(!(self::$instance instanceof self))
            {
                self::$instance = new self();
            }
            return self::$instance;
        }
        public function __get($propertyName)
        {
            return $this -> $propertyName;
        }
    }